package cn.dhn_app.horseman_app.controller;

import cn.dhn_app.horseman_app.service.GetPhoneCodeService;
import cn.itcast.util.ResponseEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: 张松
 * @Description:
 * @Date: Created in 12:55 2020/8/25
 * @Modified By:
 */
@Slf4j
@RestController
@RequestMapping(value = "getPhoneCode",produces = "application/json;charset=UTF-8")
public class GetPhoneCodeController {


    @Resource
    private GetPhoneCodeService getPhoneCodeService;

    @RequestMapping("getCode")
    public ResponseEntity getCode(
            String Phone){

        return getPhoneCodeService.getCode(Phone);
    }

}
